/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.goods.entity;

import javax.validation.constraints.NotNull;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 商品Entity
 * @author zhych
 * @version 2021-11-16
 */
@Data
public class Goods extends DataEntity<Goods> {
	
	private static final long serialVersionUID = 1L;
	@ExcelField(title="标题", align=2, sort=1)
	private String title;		// 标题
	@ExcelField(title="价格", align=2, sort=2)
	private String price;		// 价格
	@ExcelField(title="轮播图", align=2, sort=3)
	private String banner;		// 轮播图
	@ExcelField(title="缩略图", align=2, sort=4)
	private String icon;		// 缩略图
	@ExcelField(title="邮寄方式", dictType="", align=2, sort=5)
	private String postType;		// 邮寄方式
	@ExcelField(title="商品详情", align=2, sort=6)
	private String content;		// 商品详情
	@ExcelField(title="商品类型", dictType="", align=2, sort=7)
	private String goodsType;		// 商品类型
    @NotNull(message="商品数量不能为空")
	@ExcelField(title="商品数量", align=2, sort=8)
	private Integer quantity;		// 商品数量

	private Integer sort; // 排序
	
	public Goods() {
		super();
	}
	
	public Goods(String id){
		super(id);
	}
}